package homework;

public class Homework07 {
    public static void main(String[] args) {
        Doctor doctor = new Doctor("jack", 40, "外科", '男', 20000);
        Doctor doctor2 = new Doctor("jack", 40, "外科", '男', 20000);
        Doctor doctor3 = new Doctor("marry", 40, "外科", '女', 20000);

        System.out.println(doctor.equals(doctor2));
        System.out.println(doctor.equals(doctor3));
    }
}
